package ar.edu.unlam.tpfinal.model;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Entity
@Table(name = "ADDRESSES")
public class Address extends AbstractPersistentObject {
	private String street;
	
	private String city;
	
	private String state;
	
	private String country;
	
	private String zipcode;
	
	public Address() {
		this(null, null, null, null, null);
	}
	
	public Address(String street, String city, String state, String country, String zipcode) {
		super();
		this.street = street;
		this.city = city;
		this.state = state;
		this.country = country;
		this.zipcode = zipcode;
	}

	@Column(name = "STREET", columnDefinition="VARCHAR(50)", nullable = false)
	public String getStreet() {
		return this.street;
	}

	public void setStreet(String street) {
		this.street = street;
	}

	@Column(name = "CITY", columnDefinition="VARCHAR(30)", nullable = false)
	public String getCity() {
		return this.city;
	}

	public void setCity(String city) {
		this.city = city;
	}
	
	@Column(name = "STATE", columnDefinition="VARCHAR(30)", nullable = false)
	public String getState() {
		return this.state;
	}

	public void setState(String state) {
		this.state = state;
	}
	
	@Column(name = "COUNTRY", columnDefinition="VARCHAR(30)", nullable = false)
	public String getCountry() {
		return this.country;
	}

	public void setCountry(String country) {
		this.country = country;
	}

	@Column(name = "ZIPCODE", columnDefinition="VARCHAR(10)", nullable = false)
	public String getZipcode() {
		return this.zipcode;
	}

	public void setZipcode(String zipcode) {
		this.zipcode = zipcode;
	}
}
